package com.qiandao.xuexitong.util;

import com.qiandao.xuexitong.config.AmapConfig;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * 高德地图工具类
 */
@Component
@RequiredArgsConstructor
public class AmapUtil {
    
    private final AmapConfig amapConfig;
    
    /**
     * 获取高德地图配置
     */
    public Map<String, String> getConfig() {
        Map<String, String> config = new HashMap<>();
        config.put("key", amapConfig.getKey());
        return config;
    }
} 